#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
using namespace std;
int main()
{
    string a, b;
    cin >> a >> b;
    if (a == b)
        cout << "same";
    else
        cout << "different";
    return 0;
}
